import request from '@/utils/request'
// 流程标准按钮 API接口
const act_dsn_btnApi = {
    list: '/act_dsn_btn/list',
    save: '/act_dsn_btn/save',
    view: '/act_dsn_btn/view',
    del: '/act_dsn_btn/delete',
    dels: '/act_dsn_btn/batchDel',
    output: '/act_dsn_btn/output',
    exportExcelTemplate: '/act_dsn_btn/exportExcelTemplate',
    importExcel: '/act_dsn_btn/importExcel',
    toggleEnable: '/act_dsn_btn/toggleEnable',
}

/**
 * 禁用/启用按钮
 * @param {*} id
 */
 export function toggleAct_dsn_btn (id, enable) {
    return request({
        url: act_dsn_btnApi.toggleEnable,
        method: 'post',
        params: {id, enable}
    })
}
/**
 * 删除流程标准按钮
 * @param {*} id
 */
export function delAct_dsn_btn (id) {
    return request({
        url: act_dsn_btnApi.del,
        method: 'post',
        params: {id}
    })
}
/**
 * 查看、编辑流程标准按钮
 * @param {*} id
 */
export function viewAct_dsn_btn (id) {
    return request({
        url: act_dsn_btnApi.view,
        method: 'get',
        params: {id}
    })
}
/**
 * 保存流程标准按钮
 * @param {*} body
 */
export function saveAct_dsn_btn (body) {
    return request({
        url: act_dsn_btnApi.save,
        method: 'post',
        data: body
    })
}
/**
 * 查询流程标准按钮列表
 * @param {*} body
 */
export function queryAct_dsn_btnList (body) {
    return request({
        url: act_dsn_btnApi.list,
        method: 'post',
        data: body
    })
}